package org.byqh.dqeai.entity.proxy;

import com.easy.query.core.proxy.AbstractProxyEntity;
import com.easy.query.core.proxy.SQLSelectAsExpression;
import com.easy.query.core.proxy.columns.types.SQLIntegerTypeColumn;
import com.easy.query.core.proxy.columns.types.SQLLocalDateTimeTypeColumn;
import com.easy.query.core.proxy.columns.types.SQLStringTypeColumn;
import com.easy.query.core.proxy.fetcher.AbstractFetcher;
import org.byqh.dqeai.entity.EaiSysOrganization;

/**
 * this file automatically generated by easy-query, don't modify it
 * 当前文件是easy-query自动生成的请不要随意修改
 * 如果出现属性冲突请使用@ProxyProperty进行重命名
 *
 * @author easy-query
 */
public class EaiSysOrganizationProxy extends AbstractProxyEntity<EaiSysOrganizationProxy, EaiSysOrganization> {

    private static final Class<EaiSysOrganization> entityClass = EaiSysOrganization.class;

    public static final EaiSysOrganizationProxy TABLE = createTable().createEmpty();

    public static EaiSysOrganizationProxy createTable() {
        return new EaiSysOrganizationProxy();
    }

    public EaiSysOrganizationProxy() {
    }

    /**
     * 单位唯一标识符
     * {@link EaiSysOrganization#getOrgId}
     */
    public SQLStringTypeColumn<EaiSysOrganizationProxy> orgId() {
        return getStringTypeColumn("orgId");
    }

    /**
     * 单位名称
     * {@link EaiSysOrganization#getOrgName}
     */
    public SQLStringTypeColumn<EaiSysOrganizationProxy> orgName() {
        return getStringTypeColumn("orgName");
    }

    /**
     * 单位代码
     * {@link EaiSysOrganization#getOrgCode}
     */
    public SQLStringTypeColumn<EaiSysOrganizationProxy> orgCode() {
        return getStringTypeColumn("orgCode");
    }

    /**
     * 10－一级单位，20－二级单位，30－三级单位，40－四级单位
     * {@link EaiSysOrganization#getOrgLevel}
     */
    public SQLIntegerTypeColumn<EaiSysOrganizationProxy> orgLevel() {
        return getIntegerTypeColumn("orgLevel");
    }

    /**
     * {@link EaiSysOrganization#getParentId}
     */
    public SQLStringTypeColumn<EaiSysOrganizationProxy> parentId() {
        return getStringTypeColumn("parentId");
    }

    /**
     * {@link EaiSysOrganization#getOrgSeq}
     */
    public SQLIntegerTypeColumn<EaiSysOrganizationProxy> orgSeq() {
        return getIntegerTypeColumn("orgSeq");
    }

    /**
     * 创建日期
     * {@link EaiSysOrganization#getCreateDate}
     */
    public SQLLocalDateTimeTypeColumn<EaiSysOrganizationProxy> createDate() {
        return getLocalDateTimeTypeColumn("createDate");
    }

    /**
     * {@link EaiSysOrganization#getCreateUserId}
     */
    public SQLStringTypeColumn<EaiSysOrganizationProxy> createUserId() {
        return getStringTypeColumn("createUserId");
    }

    /**
     * 最后更新的日期
     * {@link EaiSysOrganization#getUpdateDate}
     */
    public SQLLocalDateTimeTypeColumn<EaiSysOrganizationProxy> updateDate() {
        return getLocalDateTimeTypeColumn("updateDate");
    }

    /**
     * {@link EaiSysOrganization#getUpdateUserId}
     */
    public SQLStringTypeColumn<EaiSysOrganizationProxy> updateUserId() {
        return getStringTypeColumn("updateUserId");
    }

    @Override
    public Class<EaiSysOrganization> getEntityClass() {
        return entityClass;
    }

    /**
     * 数据库列的简单获取
     *
     * @return
     */
    public EaiSysOrganizationProxyFetcher FETCHER = new EaiSysOrganizationProxyFetcher(this, null, SQLSelectAsExpression.empty);

    public static class EaiSysOrganizationProxyFetcher extends AbstractFetcher<EaiSysOrganizationProxy, EaiSysOrganization, EaiSysOrganizationProxyFetcher> {

        public EaiSysOrganizationProxyFetcher(EaiSysOrganizationProxy proxy, EaiSysOrganizationProxyFetcher prev, SQLSelectAsExpression sqlSelectAsExpression) {
            super(proxy, prev, sqlSelectAsExpression);
        }

        /**
         * 单位唯一标识符
         * {@link EaiSysOrganization#getOrgId}
         */
        public EaiSysOrganizationProxyFetcher orgId() {
            return add(getProxy().orgId());
        }

        /**
         * 单位名称
         * {@link EaiSysOrganization#getOrgName}
         */
        public EaiSysOrganizationProxyFetcher orgName() {
            return add(getProxy().orgName());
        }

        /**
         * 单位代码
         * {@link EaiSysOrganization#getOrgCode}
         */
        public EaiSysOrganizationProxyFetcher orgCode() {
            return add(getProxy().orgCode());
        }

        /**
         * 10－一级单位，20－二级单位，30－三级单位，40－四级单位
         * {@link EaiSysOrganization#getOrgLevel}
         */
        public EaiSysOrganizationProxyFetcher orgLevel() {
            return add(getProxy().orgLevel());
        }

        /**
         * {@link EaiSysOrganization#getParentId}
         */
        public EaiSysOrganizationProxyFetcher parentId() {
            return add(getProxy().parentId());
        }

        /**
         * {@link EaiSysOrganization#getOrgSeq}
         */
        public EaiSysOrganizationProxyFetcher orgSeq() {
            return add(getProxy().orgSeq());
        }

        /**
         * 创建日期
         * {@link EaiSysOrganization#getCreateDate}
         */
        public EaiSysOrganizationProxyFetcher createDate() {
            return add(getProxy().createDate());
        }

        /**
         * {@link EaiSysOrganization#getCreateUserId}
         */
        public EaiSysOrganizationProxyFetcher createUserId() {
            return add(getProxy().createUserId());
        }

        /**
         * 最后更新的日期
         * {@link EaiSysOrganization#getUpdateDate}
         */
        public EaiSysOrganizationProxyFetcher updateDate() {
            return add(getProxy().updateDate());
        }

        /**
         * {@link EaiSysOrganization#getUpdateUserId}
         */
        public EaiSysOrganizationProxyFetcher updateUserId() {
            return add(getProxy().updateUserId());
        }

        @Override
        protected EaiSysOrganizationProxyFetcher createFetcher(EaiSysOrganizationProxy cp, AbstractFetcher<EaiSysOrganizationProxy, EaiSysOrganization, EaiSysOrganizationProxyFetcher> prev, SQLSelectAsExpression sqlSelectExpression) {
            return new EaiSysOrganizationProxyFetcher(cp, this, sqlSelectExpression);
        }
    }
}
